package com.neu.tlias.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.neu.tlias.pojo.Dept;
import com.neu.tlias.pojo.Emp;
import com.neu.tlias.mapper.EmpMapper;
import com.neu.tlias.pojo.PageBean;
import com.neu.tlias.service.IEmpService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

/**
 * <p>
 * 员工表 服务实现类
 * </p>
 *
 * @author author
 * @since 2024-09-22
 */
@Service
public class EmpServiceImpl extends ServiceImpl<EmpMapper, Emp> implements IEmpService {

//    @Autowired
//    private EmpMapper empMapper;
//
//    @Override
//    public void add(Emp emp) {
//        emp.setCreateTime(LocalDateTime.now());
//        emp.setUpdateTime(LocalDateTime.now());
//        empMapper.insert(emp);
//    }

//    @Override
//    public void update(Emp emp) {
//        LambdaQueryWrapper<Emp> lambdaQueryWrapper = new LambdaQueryWrapper<>();
//        emp.setUpdateTime(LocalDateTime.now());
//        empMapper.update(emp,lambdaQueryWrapper);
//    }


}
